

function initSelect(){

    var sltSchool = document.getElementById('sltSchool');

    /*
    * *  <select>
       *     <option>d</option>
    * </select>
    * */

    // var opt = '<option>天津师范大学</option>';
    // sltSchool.innerHTML = opt;
    // var opt2 = '<option>四川师范大学</option>';
    // sltSchool.innerHTML += opt2;

    for (var i in schools){
        var opt = '<option value="'+schools[i].id+'">'+schools[i].name+'</option>';
        sltSchool.innerHTML+= opt;
    }
}

initSelect();